package com.wiz.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.wiz.mapper.MemberMapper;
import com.wiz.service.MemberService;
import com.wiz.to.MemberTO;
import com.wiz.vo.criteria.MemberSearchCriteriaTO;

@Service("customerService")
public class MemberServiceImpl implements MemberService {
	private transient final Logger log = LoggerFactory.getLogger(getClass());

	@Resource
	private MemberMapper memberMapper;

	@Override
	public List<MemberTO> getMemberByCustomerTO(MemberSearchCriteriaTO searchCriteria){
		return memberMapper.getMemberListByCriteriaTO(searchCriteria);
	}

	@Override
	public int getMemberCntByCriteriaTO(MemberSearchCriteriaTO searchCriteria){
		return memberMapper.getMemberCntByCriteriaTO(searchCriteria);
	}

	@Override
	public int update(String memberId) {
		return memberMapper.update(memberId);
	}

	
}